<?php
// +----------------------------------------------------------------------
// | Iecms [ Make the most exquisite CMS ]
// +----------------------------------------------------------------------
// | Copyright (c) 2009~2019 http://www.iemoo.com All rights reserved.
// +----------------------------------------------------------------------
// | Author: iemoo <i@iemoo.com>
// +----------------------------------------------------------------------
// | DateTime: 2019/11/19 11:08
// +----------------------------------------------------------------------
namespace app\admin\validate;

use think\Validate;

/**
 * 验证器
 * @package app\admin\validate
 */
class ArchivesFiles extends Validate
{
    protected $rule = [
		'content_id'		=> 'require|number',
		'uploads_id'		=> 'require|number',
		'name'				=> 'max:200',
		'title'				=> 'max:200',
    ];

    protected $message = [
		'content_id.require'	=> '文档ID缺失',
		'content_id.number'		=> '文档ID有误',
		'uploads_id.require'	=> '文件ID缺失',
		'uploads_id.number'		=> '文件ID有误',
		
        'name.max'			=> '原文件名过长',
		'title.max'			=> '文件描述过长',
    ];
	

}